package com.cloudkinto.bo.order.outbound;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 备货中转拣货
 *
 * @author long
 */
@Data
public class TransferOutboundPickingBo {
    @ApiModelProperty("出库单id")
    private Long id;

    @ApiModelProperty("拣货明细")
    @NotNull(message = "拣货明细不可为空")
    private List<TransferPickingDetail> transferPickingDetailList = new ArrayList<>();

    @Data
    public static class TransferPickingDetail {
        @ApiModelProperty("出库产品id或箱id")
        private Long outboundProductId;
        @ApiModelProperty("出库名称 sku或箱类号")
        private String productIdOrBoxTypeNumber;
        private List<TransferPickingCell> pickingCellList = new ArrayList<>();
    }

    @Data
    public static class TransferPickingCell {
        private Long cellId;
        private Integer qty;
    }
}
